package com.gigi.model;

import com.alibaba.cola.dto.PageQuery;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel("课程列表请求实体")
@Data
public class ListCourseRequest extends PageQuery {

    private Long userId;

    private String name;

    @NotNull(message = "有效性不能为空")
    private Integer flag;

    // 是否分页：0否，1是
    private Integer ifByPage = 0;

}
